﻿<UserControl x:Class="GeoPlugin.EuropeViewBox"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" Width="1000" Height="800">

    <Grid x:Name="LayoutRoot">
        <Grid.Resources>
            <Storyboard x:Name="ShowPopup" x:Key="ShowPopup2">
                <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="GridMenu" Storyboard.TargetProperty="(UIElement.Opacity)">
                    <SplineDoubleKeyFrame KeyTime="0" Value="0"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.25" Value="1"/>
                </DoubleAnimationUsingKeyFrames>
            </Storyboard>
            <Storyboard x:Name="HidePopup" x:Key="HidePopup2">
                <DoubleAnimationUsingKeyFrames BeginTime="0" Duration="0" Storyboard.TargetName="GridMenu" Storyboard.TargetProperty="(UIElement.Opacity)">
                    <DiscreteDoubleKeyFrame KeyTime="0" Value="0" />
                </DoubleAnimationUsingKeyFrames>
            </Storyboard>
        </Grid.Resources>
        <Viewbox x:Name="MapsViewbox">
            <Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    x:Name="MapsHotSpot" Width="1200" 			
                    Height="1000"
                    UseLayoutRounding="False">
                <Image x:Name="Image" Height="1000" Stretch="Fill" Width="1200" Canvas.Left="0" Canvas.Top="0"/>
                <Canvas Name="Romania" Width="1200" Height="1000">
                    <Path Data="M722.66112,726.61123 L726.31926,721.95343 730.47757,717.79585 736.715,715.7172 740.87343,714.67804 745.03185,715.71718 751.26949,715.71718 755.42797,715.71718 760.62609,718.83547 765.82367,718.83547 767.90301,702.20461 769.98236,691.80987 776.22009,687.65176 779.33906,680.3752 773.10118,672.05971 764.78445,678.29659 757.50731,679.33604 747.1114,671.02041 746.07181,653.34923 732.55712,635.67861 718.00285,620.08629 707.6071,613.84966 701.3697,620.08654 687.85518,627.36276&#xd;&#xa;683.69639,633.59952 674.33964,631.5206 667.06258,631.5206 654.58695,630.48114 646.26972,634.63898 636.91281,642.95466 629.63565,655.42818 622.35894,672.05954 619.24017,679.33576 615.08128,686.61198 605.72435,689.73036 615.08083,698.04604 619.23926,708.44063 630.67494,709.48009 630.67494,717.79577 C630.67494,717.79577 628.59572,722.99307 631.71454,722.99307 634.83337,722.99307 641.07101,722.99307 641.07101,722.99307 L649.38786,724.03253 C649.38786,724.03253 649.40294,723.97977 649.43246,723.88579 649.74953,722.87619 651.73267,717.11039 654.5859,720.91415 657.70472,725.07199 652.50668,729.22983 652.50668,729.22983 L661.86315,731.3085 666.02157,732.34772 669.14039,737.54524 677.45725,737.54524 684.7345,737.54524 C684.7345,737.54524 690.97214,736.50551 694.09096,736.50551 697.20978,736.50551 708.64546,735.46605 708.64546,735.46605 L716.96231,730.26878 z" Fill="#FFCE4218" Height="124.701" Canvas.Left="605.737" Stretch="Fill" Stroke="Black" Canvas.Top="613.845" Width="174.597" Opacity="0.1"/>
                </Canvas>
                <Canvas Name="Germany" Width="1200" Height="1000">
                    <Path Data="M446.15385,671.51767 L452.93019,665.81987 458.12835,664.78058 462.2864,659.58264 468.5235,662.70132 474.76056,667.89885 475.79996,662.70132 472.68171,654.38527 C472.68171,654.38527 469.56309,648.14774 472.68171,648.14774 475.80033,648.14774 479.95849,643.98924 479.95849,643.98924 L485.15664,636.71201 487.23563,632.55397 474.76096,622.15861 467.48413,613.8424 461.24686,605.52618 459.16776,598.24951 469.56323,590.97229 482.03778,585.77466 489.31461,579.53694 493.47267,575.37829 498.67026,575.37829 502.82885,568.10096 497.63148,555.62631 495.55237,545.23082 C495.55237,545.23082 497.63148,537.95398 494.51281,534.83531 491.39414,531.71663 487.23591,526.51891 487.23591,526.51891 L491.39414,514.04427 C491.39414,514.04427 490.35458,508.84648 489.31503,505.72781 488.27547,502.60914 480.99858,501.56959 479.95902,498.45092 478.91946,495.33225 473.72168,494.29219 473.72168,494.29219 L467.48434,490.13444 461.247,487.01626 C461.247,487.01626 457.08878,488.05581 452.93055,491.17447 448.77233,494.29313 443.57455,495.33269 443.57455,495.33269 L441.49528,499.4909 436.2973,499.4909 436.2973,491.17447 430.0603,489.09536 420.70467,489.09536 420.70467,481.81848 415.50673,478.70031 C415.50673,478.70031 418.62571,478.70032 408.23021,478.70031 397.83471,478.7003 397.83451,478.70031 397.83451,478.70031 L400.95296,491.17492 401.99252,500.53088 401.99252,508.84729 395.75519,508.84729 C395.75519,508.84729 390.5572,507.80774 387.43854,508.84729 384.31987,509.88685 376.00319,506.76819 376.00319,509.88685 376.00319,513.0055 380.16167,528.59877 380.16167,528.59877 L369.76612,537.95474 369.76612,549.38981 362.48951,553.54801 C362.48951,553.54801 360.41015,545.2316 358.33104,553.54801 356.25193,561.86443 358.33104,569.14129 358.33104,569.14129 L353.133,580.57636 359.37058,596.16963 360.41014,608.64425 365.60792,621.11887 379.12214,628.39573 388.47814,626.31663 386.39903,632.55394 383.28036,641.9099 381.20125,652.30542 379.12214,662.70093 396.79459,664.78004 411.34836,660.62183 419.66481,665.81959 430.06037,668.93824 440.45592,667.89869 z" Fill="#FFCE4218" Height="193.808" Canvas.Left="353.138" Stretch="Fill" Stroke="Black" Canvas.Top="478.71" Width="150.688" Opacity="0.1"/>
                </Canvas>
            </Canvas>
        </Viewbox>

        <Popup x:Name="contextMenu" Opened="contextMenu_Opened" Closed="contextMenu_Closed">
            <Grid x:Name="GridMenu" Opacity="0.9">
                <Border BorderBrush="Azure" BorderThickness="1" CornerRadius="3" >

                    <ListBox x:Name="contextListBox" Opacity="0.9" />

                </Border>
            </Grid>
        </Popup>

    </Grid>
</UserControl>
